import 'package:azlistview/azlistview.dart';

/// searchId : null
/// friendApplyId : 426488
/// userId : 1015
/// account : "h_HskiajE"
/// friendUserId : 1016
/// friendName : null
/// friendNickName : "小叮当"
/// friendHead : ""
/// sex : "M"
/// mobile : null
/// des : null
/// cleanTime : null
/// addType : "mobileSearch"
/// createTime : "2022-01-11 18:23:52"
/// isFriend : null
/// userStatus : "normal"
/// reason : null
/// inviteName : null
/// inviteId : null
/// inviteUid : null
/// source : null
/// sourceName : null
/// sourceUid : null
/// isRisk : null
/// riskContext : null
/// riskType : null
/// uid : "31d4d5c49f1b4323b98dc719029eabf7"
/// isApply : null
/// sort : false
/// disturb : false
/// blackList : false
/// screenshot : false
/// id : 608284

class FriendModel extends ISuspensionBean{
  FriendModel({
    this.searchId,
    this.tagIndex,
    this.friendApplyId,
    this.userId,
    this.account,
    this.friendUserId,
    this.friendName,
    this.friendNickName,
    this.friendHead,
    this.sex,
    this.mobile,
    this.des,
    this.cleanTime,
    this.addType,
    this.createTime,
    this.isFriend,
    this.userStatus,
    this.reason,
    this.inviteName,
    this.inviteId,
    this.inviteUid,
    this.source,
    this.sourceName,
    this.sourceUid,
    this.isRisk,
    this.riskContext,
    this.riskType,
    this.uid,
    this.isApply,
    this.sort,
    this.disturb,
    this.blackList,
    this.screenshot,
    this.id,
  });

  FriendModel.fromJson(dynamic json) {
    searchId = json['searchId'];
    friendApplyId = json['friendApplyId'];
    userId = json['userId'];
    account = json['account'];
    friendUserId = json['friendUserId'];
    friendName = json['friendName'];
    friendNickName = json['friendNickName'];
    friendHead = json['friendHead'];
    sex = json['sex'];
    mobile = json['mobile'];
    des = json['des'];
    cleanTime = json['cleanTime'];
    addType = json['addType'];
    createTime = json['createTime'];
    isFriend = json['isFriend'];
    userStatus = json['userStatus'];
    reason = json['reason'];
    inviteName = json['inviteName'];
    inviteId = json['inviteId'];
    inviteUid = json['inviteUid'];
    source = json['source'];
    sourceName = json['sourceName'];
    sourceUid = json['sourceUid'];
    isRisk = json['isRisk'];
    riskContext = json['riskContext'];
    riskType = json['riskType'];
    uid = json['uid'];
    isApply = json['isApply'];
    sort = json['sort'];
    disturb = json['disturb'];
    blackList = json['blackList'];
    screenshot = json['screenshot'];
    id = json['id'];
    tagIndex = json['tagIndex'];
  }

  dynamic searchId;
  String? tagIndex;
  int? friendApplyId;
  int? userId;
  String? account;
  int? friendUserId;
  dynamic friendName;
  String? friendNickName;
  String? friendHead;
  String? sex;
  dynamic mobile;
  dynamic des;
  dynamic cleanTime;
  String? addType;
  String? createTime;
  dynamic isFriend;
  String? userStatus;
  dynamic reason;
  dynamic inviteName;
  dynamic inviteId;
  dynamic inviteUid;
  dynamic source;
  dynamic sourceName;
  dynamic sourceUid;
  dynamic isRisk;
  dynamic riskContext;
  dynamic riskType;
  String? uid;
  dynamic isApply;
  bool? sort;
  bool? disturb;
  bool? blackList;
  bool? screenshot;
  int? id;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['searchId'] = searchId;
    map['friendApplyId'] = friendApplyId;
    map['userId'] = userId;
    map['account'] = account;
    map['friendUserId'] = friendUserId;
    map['friendName'] = friendName;
    map['friendNickName'] = friendNickName;
    map['friendHead'] = friendHead;
    map['sex'] = sex;
    map['mobile'] = mobile;
    map['des'] = des;
    map['cleanTime'] = cleanTime;
    map['addType'] = addType;
    map['createTime'] = createTime;
    map['isFriend'] = isFriend;
    map['userStatus'] = userStatus;
    map['reason'] = reason;
    map['inviteName'] = inviteName;
    map['inviteId'] = inviteId;
    map['inviteUid'] = inviteUid;
    map['source'] = source;
    map['sourceName'] = sourceName;
    map['sourceUid'] = sourceUid;
    map['isRisk'] = isRisk;
    map['riskContext'] = riskContext;
    map['riskType'] = riskType;
    map['uid'] = uid;
    map['isApply'] = isApply;
    map['sort'] = sort;
    map['disturb'] = disturb;
    map['blackList'] = blackList;
    map['screenshot'] = screenshot;
    map['id'] = id;
    return map;
  }

  @override
  String getSuspensionTag() => tagIndex!;
}
